package com.feature50.makeover;

/**
 * Simple tree node for the Extreme Make-over demo
 */
public class ENode {
    private String display;
    private AppLauncher launcher;
    private ENode parent;

    public ENode(ENode parent, String display) {
        this.parent = parent;
        this.display = display;
    }

    public ENode(ENode parent, String display, AppLauncher launcher) {
        this.parent = parent;
        this.display = display;
        this.launcher = launcher;
    }

    public ENode getParent() {
        return parent;
    }

    public String getDisplay() {
        return display;
    }

    public AppLauncher getLauncher() {
        return launcher;
    }

    @Override
    public String toString() {
        return display;
    }
}
